import { Path } from '@coyamo/http_decorators'
import {
  Body,
  GET,
  Header,
  HeaderMap,
  Headers,
  POST,
  Query,
  QueryMap
} from '@coyamo/http_decorators/src/main/ets/HttpDecorators'
import { Call } from '@coyamo/http_decorators/src/main/ets/Call'

export class TestApiService {
  @GET()
  @Headers(["Hello:World"])
  getData(): Call {
    throw Error()
  }

  @POST("/{pathVar}/{pathVar}")
  @Headers(["Headers1:Hello", "Headers2:Hello,world"])
  getData2(
    @Path("pathVar") path: string,
    @Query("queryVar") query: string,
    @Body body: object,
    @Header("header") header: string,
    @HeaderMap headers: object,
    @QueryMap queryMap: object
  ): Call {
    throw Error()
  }

  // @GET("https://gitee.com/{pathVar}/{pathVar2}")
  // getData3(
  //   @Path("pathVar") @Path("pathVar2") path: string,
  //   @Query("queryVar") @Query("queryVar2") query: string
  // ): any {
  //   throw Error()
  // }
}